package org.example.order.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.example.entity.Order;

@Mapper
public interface OrderMapper {

    @Insert("insert into t_order (account_id,goods_id,goods_num,order_amount) " +
            "values (#{accountId}, #{goodsId}, #{goodsNum}, #{orderAmount})")
    void addOrder(Order order);
}
